use core::config::{CONFIG_PATH, DATA_PATH};

use utils::file_dir::makesure_dir;

mod core;
mod utils;

#[tokio::main]
async fn main() {
	CONFIG_PATH.lock().unwrap().push_str("/etc/enderman/client.conf");
	DATA_PATH.lock().unwrap().push_str("/usr/share/enderman");
	makesure_dir(&DATA_PATH.lock().unwrap().to_string());

	core::config::init_config();
	// 初始化 enderman 托管的配置文件
	core::config_files::init_config_files().await;
}
